import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
var fywflcode = '001002'
export function ocalityPostAction(data) {
  //console.log('字典传参',data)
  return axios({
    url: assessCheckApi.dict,
    method:'get' ,
    params:data,
    url_1:'outside'
  })
}
  export function spcyqueryQyWjclml(params){
    return axios({
      url: assessCheckApi.spcyqueryQyWjclml,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  
  export function spcyupdateMl(params){
    return axios({
      url: assessCheckApi.spcyupdateMl,
      method:'put' ,
      data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  export function spcyoneKeyUpdateClmlBkck(params){
    return axios({
      url: assessCheckApi.spcyoneKeyUpdateClmlBkck,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  export function spcyoneKeyUpdateClmlKck(params){
    return axios({
      url: assessCheckApi.spcyoneKeyUpdateClmlKck,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  export function spcyoneKeyUpdateClmlWsc(params){
    return axios({
      url: assessCheckApi.spcyoneKeyUpdateClmlWsc,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  export function spcyoneKeyUpdateClmlYsc(params){
    return axios({
      url: assessCheckApi.spcyoneKeyUpdateClmlYsc,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }

  
  export function spcydownloadQysqclFile(params){
    return axios({
      url: assessCheckApi.spcydownloadQysqclFile,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside',
      responseType: 'arraybuffer'
    })
  }

  export function spcyRsGcyqueryAllJgbm(params){
    return axios({
      url: assessCheckApi.spcyRsGcyqueryAllJgbm,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside',
    })
  }


  export function spcyRsGcysaveSelectedGcyToSqsx(params){
    return axios({
      url: assessCheckApi.spcyRsGcysaveSelectedGcyToSqsx,
      method:'post' ,
      data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside',
    })
  }
  
  export function spcyRsBhgzautoSlbhBySqsxId(data){
    return axios({
      url: assessCheckApi.spcyRsBhgzautoSlbhBySqsxId,
      method:'get' ,
      params:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  
  export function spcysaveFlow(data){
    return axios({
      url: assessCheckApi.spcysaveFlow,
      method:'post' ,
      data:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
      url_1:'outside'
    })
  }

  export function queryYwzdYwflContent(params){
    return axios({
      url: assessCheckApi.queryYwzdYwflContent,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside',
    })
  }

  
  export function commonxpHcyByHand(params){
    return axios({
      url: assessCheckApi.commonxpHcyByHand,
      method:'post' ,
      data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }
  export function commonxpHcyByAuto(params){
    return axios({
      url: assessCheckApi.commonxpHcyByAuto,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
  }

  //修改选派人信息
  
  
export function commonupdateXpHcyxx(data){
  return axios({
    url: assessCheckApi.commonupdateXpHcyxx,
    method:'put' ,
    data:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
    url_1:'outside'
  })
}

//删除已选派人员
export function commondeleteXpHcy(params){
  return axios({
    url: assessCheckApi.commondeleteXpHcy,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}
  
  //发送短息
export function sendSmsByXpjlQr(params){
  return axios({
    url: assessCheckApi.sendSmsByXpjlQr,
    method:'get' ,
    params:{...params},
    url_1:'outside',
  })
}
export function commonUpdateHcyJbxx(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.commonUpdateHcyJbxx,
    method:'put' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function updateXpHcyxxServe(data){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.updateXpHcyxx,
    method:'put' ,
    data:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
    url_1:'outside'
  })
}
export function spcygetJcfaFile(params){
  return axios({
    url: assessCheckApi.spcygetJcfaFile,
    method:'get' ,
    params:{...params},
    url_1:'outside',
  })
}


export function webOfficeApiopenFile(parameter) {
  return axios({
    url:assessCheckApi.webOfficeApiopenFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function openFileReadOnly(parameter) {
  return axios({
    url:assessCheckApi.openFileReadOnly,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function webOfficeApiopenQyFile(parameter) {
  return axios({
    url:assessCheckApi.webOfficeApiopenQyFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function wjmbWebOfficeApiopenFileRead(parameter) {
  return axios({
    url:assessCheckApi.wjmbWebOfficeApiopenFileRead,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function wjmbWebOfficeApiOpenFile(parameter) {
  return axios({
    url:assessCheckApi.wjmbWebOfficeApiOpenFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function ZltxwjWebOfficeApiOpenFileBase(parameter) {
  return axios({
    url:assessCheckApi.ZltxwjWebOfficeApiOpenFileBase,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function ZltxwjWebOfficeApiOpenFile(parameter) {
  return axios({
    url:assessCheckApi.ZltxwjWebOfficeApiOpenFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function getDocxToPdf(parameter) {
  return axios({
    url:assessCheckApi.getDocxToPdf,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function againEditPdfOnlineFile(parameter) {
  return axios({
    url:assessCheckApi.againEditPdfOnlineFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function getDocxToPdfAndGz(parameter) {
  return axios({
    url:assessCheckApi.getDocxToPdfAndGz,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function pdfFileHcCa(parameter) {
  return axios({
    url:assessCheckApi.pdfFileHcCa,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function spcySqsxWjjlgetLocalFileById(params){
  return axios({
    url: assessCheckApi.spcySqsxWjjlgetLocalFileById,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
export function spcydownZipJcfaCl(params){
  return axios({
    url: assessCheckApi.spcydownZipJcfaCl,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
//1
export function getWebOfficeDownloadFile(parameter) {
  return axios({
    url: assessCheckApi.getWebOfficeDownloadFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function queryHcyXpList(parameter) {
  return axios({
    url: assessCheckApi.queryHcyXpList,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function commoninitWjjl(params){
  return axios({
    url: assessCheckApi.commoninitWjjl,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function uploadPdfFileById(data){
  return axios({
    url: assessCheckApi.uploadPdfFileById,
    method:'post' ,
    data:data,
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

export function hbjcdeletUploadSqsxFile(data){
  return axios({
    url: assessCheckApi.hbjcdeletUploadSqsxFile,
    method:'post' ,
    data:data,
    url_1:'outside',
  })
}


export function spcySqsxWjjldeleteFileById(params){
  return axios({
    url: assessCheckApi.spcySqsxWjjldeleteFileById,
    method:'delete' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyuploadSqsxFile(params){
  return axios({
    url: assessCheckApi.spcyuploadSqsxFile,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}
export function spcyuploadQywjcl(params){
  return axios({
    url: assessCheckApi.spcyuploadQywjcl,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}

export function commononeTouchHcyByAuto(params){
  return axios({
    url: assessCheckApi.commononeTouchHcyByAuto,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function spcyqueryKckWjclList(params){
  return axios({
    url: assessCheckApi.spcyqueryKckWjclList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}


export function spcycancelSelectWjclKck(params){
  return axios({
    url: assessCheckApi.spcycancelSelectWjclKck,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function spcydeleteZxscQywjcl(params){
  return axios({
    url: assessCheckApi.spcydeleteZxscQywjcl,
    method:'delete' ,
    params:params,
    url_1:'outside'
  })
}


export function spcydownloadQysqclById(params){
  return axios({
    url: assessCheckApi.spcydownloadQysqclById,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

export function sqsxYwxxqueryAutoXpryYwxxList(params){
  return axios({
    url: assessCheckApi.sqsxYwxxqueryAutoXpryYwxxList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function sqsxYwxxinitDsrwAutoXpry(params){
  return axios({
    url: assessCheckApi.sqsxYwxxinitDsrwAutoXpry,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}

export function sqsxYwxxverifyAutoXpryYwxxIsExists(params){
  return axios({
    url: assessCheckApi.sqsxYwxxverifyAutoXpryYwxxIsExists,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function ybmjhybmJcyXpByAuto(params){
  return axios({
    url: assessCheckApi.ybmjhybmJcyXpByAuto,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}


export function sqsxYwxxtjEndZxzAutoXpryRwList(params){
  return axios({
    url: assessCheckApi.sqsxYwxxtjEndZxzAutoXpryRwList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function ybmjhverifySqsxYbmzt(params){
  return axios({
    url: assessCheckApi.ybmjhverifySqsxYbmzt,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function ybmjhqueryYbmRyList(params){
  return axios({
    url: assessCheckApi.ybmjhqueryYbmRyList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function ybmjhaddBmjh(params){
  return axios({
    url: assessCheckApi.ybmjhaddBmjh,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}


export function ybmjhjsbm(params){
  return axios({
    url: assessCheckApi.ybmjhjsbm,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function ybmjhqueryBmxmBySqsx(params){
  return axios({
    url: assessCheckApi.ybmjhqueryBmxmBySqsx,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function initWjwccxrySctzh(params){
  return axios({
    url: assessCheckApi.initWjwccxrySctzh,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}

export function commonqueryJcyTyXpList(params){
  return axios({
    url: assessCheckApi.commonqueryJcyTyXpList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}


export function sqsxYwxxgetCxrySendDqrSmsNr(params){
  return axios({
    url: assessCheckApi.sqsxYwxxgetCxrySendDqrSmsNr,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function sqsxYwxxgetJctzSmsContent(params){
  return axios({
    url: assessCheckApi.sqsxYwxxgetJctzSmsContent,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}


export function sqsxYwxxgetYbmCxrySendDqrSmsNr(params){
  return axios({
    url: assessCheckApi.sqsxYwxxgetYbmCxrySendDqrSmsNr,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function sqsxYwxxsendQrSms(params){
  return axios({
    url: assessCheckApi.sqsxYwxxsendQrSms,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}


export function sqsxYwxxgetCxrySendDqrRyxx(params){
  return axios({
    url: assessCheckApi.sqsxYwxxgetCxrySendDqrRyxx,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function sqsxYwxxgetJctzSmsRyxx(params){
  return axios({
    url: assessCheckApi.sqsxYwxxgetJctzSmsRyxx,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function hbjcgetBhbsqsxList(params){
  return axios({
    url: assessCheckApi.hbjcgetBhbsqsxList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function hbjcinitHbsqsxWjjl(params){
  return axios({
    url: assessCheckApi.hbjcinitHbsqsxWjjl,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}


export function ybmjhybmOrJcyXpByAuto(params){
  return axios({
    url: assessCheckApi.ybmjhybmOrJcyXpByAuto,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function sqsxYwxxgetYxprySlhzt(params){
  return axios({
    url: assessCheckApi.sqsxYwxxgetYxprySlhzt,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function sqsxYwxxsendQrSmsSingle(params){
  return axios({
    url: assessCheckApi.sqsxYwxxsendQrSmsSingle,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}

export function sqsxYwxxsaveCxrySendDqrSmsNr(params){
  return axios({
    url: assessCheckApi.sqsxYwxxsaveCxrySendDqrSmsNr,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}

export function mbzjqueryjcbgMbList(params){
  return axios({
    url: assessCheckApi.mbzjqueryjcbgMbList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function wjmbWebOfficeApiopenFile(params){
  return axios({
    url: assessCheckApi.wjmbWebOfficeApiopenFile,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function wjmbWebOfficeApigetWebOfficeDownloadFile(params){
  return axios({
    url: assessCheckApi.wjmbWebOfficeApigetWebOfficeDownloadFile,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function mbzjdeleteWjmbById(params){
  return axios({
    url: assessCheckApi.mbzjdeleteWjmbById,
    method:'delete' ,
    params:params,
    url_1:'outside'
  })
}

export function mbzjadd(params){
  return axios({
    url: assessCheckApi.mbzjadd,
    method:'POST' ,
    data:params,
    url_1:'outside',
  })
}
export function mbzjedit(params){
  return axios({
    url: assessCheckApi.mbzjedit,
    method:'POST' ,
    data:params,
    url_1:'outside',
  })
}

export function mbzjdelete(params){
  return axios({
    url: assessCheckApi.mbzjdelete,
    method:'delete' ,
    params:params,
    url_1:'outside',
  })
}

export function mbzjmbZjUpOrder(params){
  return axios({
    url: assessCheckApi.mbzjmbZjUpOrder,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}
export function mbzjmbZjDownOrder(params){
  return axios({
    url: assessCheckApi.mbzjmbZjDownOrder,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}

export function hbjcqueryHbzsxList(params){
  return axios({
    url: assessCheckApi.hbjcqueryHbzsxList,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}

export function spcyquerySqsxDetailsById(params){
  return axios({
    url: assessCheckApi.spcyquerySqsxDetailsById,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}

export function hbjcqueryBgBhbsxList(params){
  return axios({
    url: assessCheckApi.hbjcqueryBgBhbsxList,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}

export function mbzjhbxzbgmb(params){
  return axios({
    url: assessCheckApi.mbzjhbxzbgmb,
    method:'POST' ,
    data:params,
    url_1:'outside',
  })
}


export function ybmjhverifyCzYjs(params){
  return axios({
    url: assessCheckApi.ybmjhverifyCzYjs,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}


export function mbzjqueryHbjcBgMl(params){
  return axios({
    url: assessCheckApi.mbzjqueryHbjcBgMl,
    method:'get',
    params:params,
    url_1:'outside',
  })
}

export function mbzjupdateJcmb(params){
  return axios({
    url: assessCheckApi.mbzjupdateJcmb,
    method:'POST' ,
    data:params,
    url_1:'outside',
  })
}


export function jcyglupdateJcyGpk(params){
  return axios({
    url: assessCheckApi.jcyglupdateJcyGpk,
    method:'get',
    params:params,
    url_1:'outside',
  })
}
export function spcyyzczJcfa(params){
  return axios({
    url: assessCheckApi.spcyyzczJcfa,
    method:'get',
    params:params,
    url_1:'outside',
  })
}

export function spcyquerySycjcbgList(parameter) {
  return axios({
    url:assessCheckApi.spcyquerySycjcbgList,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function dictzjflDict(parameter) {
  return axios({
    url:assessCheckApi.dictzjflDict,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
